<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Inpainting:  Fichier source de /home/r0ots/Prog/Master/m2/inpainting/include/Masque.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
    </ul>
  </div>
<h1>/home/r0ots/Prog/Master/m2/inpainting/include/Masque.h</h1><a href="_masque_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef MASQUE_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define MASQUE_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;GL/glut.h&gt;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;../include/Image.h&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;../include/Pixel.h&quot;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a><a class="code" href="struct_point.html">00013</a> <span class="keyword">struct </span><a class="code" href="struct_point.html">Point</a>{
<a name="l00014"></a>00014         <span class="keywordtype">int</span> x,y,nbIt;
<a name="l00015"></a>00015         <a class="code" href="struct_point.html">Point</a>(<span class="keywordtype">int</span> _x,<span class="keywordtype">int</span> _y,<span class="keywordtype">int</span> _nbIt):x(_x),y(_y),nbIt(_nbIt){};
<a name="l00016"></a>00016 };
<a name="l00017"></a>00017 
<a name="l00024"></a><a class="code" href="class_masque.html">00024</a> <span class="keyword">class </span><a class="code" href="class_masque.html" title="Classe Masque binaire.">Masque</a>{
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">public</span>:
<a name="l00035"></a>00035         <a class="code" href="class_masque.html#a59f58afbec66b1f86d73005ae64c9889" title="Constructeur.">Masque</a>(<span class="keywordtype">int</span> _l,<span class="keywordtype">int</span> _h);
<a name="l00042"></a>00042         <a class="code" href="class_masque.html#a3819304ebfcb2b0dec4bc4561b7b18d2" title="Destructeur.">~Masque</a>();
<a name="l00052"></a>00052         GLubyte <a class="code" href="class_masque.html#a719424bc577d50a78d9576135c6bdd25" title="Lit une valeur.">Lit</a>(<span class="keywordtype">int</span> _x,<span class="keywordtype">int</span> _y,<span class="keywordtype">bool</span> tmp=<span class="keyword">false</span>);
<a name="l00062"></a>00062         <span class="keywordtype">bool</span> <a class="code" href="class_masque.html#ab37c8f2ce525f9d5df3b14f404decb2f" title="Lit une valeur.">LitBool</a>(<span class="keywordtype">int</span> _x,<span class="keywordtype">int</span> _y,<span class="keywordtype">bool</span> tmp=<span class="keyword">false</span>);
<a name="l00073"></a>00073         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#a86ee66eda4b5f3c4fc17eee5fa28e9b2" title="Ecrit une valeur.">Ecrit</a>(<span class="keywordtype">int</span> _x,<span class="keywordtype">int</span> _y,GLubyte _b,<span class="keywordtype">bool</span> tmp=<span class="keyword">false</span>);
<a name="l00086"></a>00086         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#a38633b57fb6ba53ce291fb5754af101b" title="Dessine dans le masque.">Dessine</a>(<span class="keywordtype">int</span> _xa,<span class="keywordtype">int</span> _ya,<span class="keywordtype">int</span> _xb, <span class="keywordtype">int</span> _yb, <span class="keywordtype">int</span> _couleur);
<a name="l00094"></a>00094         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#a9705cc866142402dbed1b9b2aa3ee85f" title="Affiche le masque.">Afficher</a>();
<a name="l00103"></a>00103         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#a0d460b2436e522f8359890442c550396" title="Affiche le pinceau.">AffichePinceau</a>(<span class="keywordtype">int</span> x,<span class="keywordtype">int</span> y);
<a name="l00104"></a>00104 
<a name="l00112"></a>00112         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#ae0c964e320874c9f95e0de0e6f73f9ea" title="Efface le masque.">Effacer</a>();
<a name="l00120"></a>00120         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#ada1374de7a8d16dc59ba0baa3b0db66c" title="Modifie la taille du pinceau.">setTaillePinceau</a>(<span class="keywordtype">int</span> t);
<a name="l00128"></a>00128         <span class="keywordtype">int</span> <a class="code" href="class_masque.html#a158f7c514ce685065227926171909077" title="Accesseur taille du pinceau.">getTaillePinceau</a>();
<a name="l00129"></a>00129         
<a name="l00138"></a>00138         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#aee482ef7d72f6f5d67d2901fe08bb725" title="Construit un masque a partir d&amp;#39;une image et d&amp;#39;une couleur.">getMaskFromPicture</a> ( <a class="code" href="class_image.html" title="Classe Image RGB.">Image</a>* I, <a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a> p );
<a name="l00139"></a>00139 
<a name="l00146"></a>00146         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#af147fd3506bb0afa3e299c59c9c9ace3" title="Calcule le rectangle incluant le masque.">getBounds</a> ( <span class="keywordtype">int</span> * _xmin, <span class="keywordtype">int</span> * _xmax, <span class="keywordtype">int</span> * _ymin, <span class="keywordtype">int</span> * _ymax );
<a name="l00147"></a>00147         
<a name="l00153"></a>00153         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#a2f8e38b5a5c09eb531709311e0377e84" title="Empile les valeurs &amp;quot;vrai&amp;quot; du masque dans un tableau de Point 2D Empile...">empiler</a>();
<a name="l00154"></a><a class="code" href="class_masque.html#aea043aadd420890249c4a14dbed33568">00154</a>         std::list&lt;Point&gt; <a class="code" href="class_masque.html#aea043aadd420890249c4a14dbed33568">listePos</a>;
<a name="l00161"></a>00161         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#ae98a9747f4d2edbb9ffe9be5c8ccd6b1" title="Réalise une dilatation du masque Réalise une dilatation d&amp;#39;ordre &amp;#39;ordre&amp;#39;...">dilatation</a>(<span class="keywordtype">int</span> ordre);
<a name="l00168"></a>00168         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#a557e8f66d198725244f11e7ba1eb2757" title="Réalise une erosion du masque Réalise une erosion d&amp;#39;ordre &amp;#39;ordre&amp;#39; de...">erosion</a>(<span class="keywordtype">int</span> ordre);
<a name="l00174"></a>00174         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#a885ca547339d20f15b9236f71e2de605" title="Recupere la 1ere bande de masque (Deprecated) Recupere la 1ere bande de masque en...">getBande</a>();
<a name="l00180"></a>00180         <span class="keywordtype">bool</span> <a class="code" href="class_masque.html#aeb001dcaff8ac06abbd108f7958fccd2" title="Recupere les bandes de masque suivantes (Deprecated) Recupere les bande suivantes...">getNextBande</a>();
<a name="l00186"></a>00186         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#ad8a0fd2ce71193987c96644118409f3f" title="Pondere le masque Fonction qui permet d&amp;#39;appliquer des valeurs au zones du masque...">Traitement</a>();
<a name="l00192"></a>00192         <span class="keywordtype">bool</span> <a class="code" href="class_masque.html#a511d236d67a8ecd642c86b90f2992802" title="Test si le masque est vide Fonction qui permet de tester si le masque est vide (pour...">vide</a>();
<a name="l00198"></a>00198         <span class="keywordtype">bool</span> <a class="code" href="class_masque.html#a9b1f87d5ef9e987d0c3eb501b0f5daf9" title="Met a jour les valeurs de ponderation du masque Fonction qui met a jour les valeurs...">Update</a>();
<a name="l00199"></a>00199 
<a name="l00207"></a>00207         GLubyte <a class="code" href="class_masque.html#a310e0ba341136d07624b6cecf179b483" title="Functor de lecture (Deprecated (enleve de la lisibilité au code)).">operator()</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> x, <span class="keyword">const</span> <span class="keywordtype">int</span> y,<span class="keywordtype">bool</span> tmp=<span class="keyword">false</span>);
<a name="l00216"></a>00216         <span class="keywordtype">void</span> <a class="code" href="class_masque.html#a310e0ba341136d07624b6cecf179b483" title="Functor de lecture (Deprecated (enleve de la lisibilité au code)).">operator()</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> x, <span class="keyword">const</span> <span class="keywordtype">int</span> y,<span class="keyword">const</span> GLubyte val,<span class="keywordtype">bool</span> tmp=<span class="keyword">false</span>);
<a name="l00217"></a>00217         
<a name="l00218"></a>00218 <span class="keyword">private</span>:
<a name="l00219"></a><a class="code" href="class_masque.html#ad57d885a204a8c91cadd05d4cda8c47d">00219</a>         <span class="keywordtype">int</span>     <a class="code" href="class_masque.html#ad57d885a204a8c91cadd05d4cda8c47d">largeur</a>; 
<a name="l00220"></a><a class="code" href="class_masque.html#ac8d468389d7f8b4cdd58156aa61b4b41">00220</a>         <span class="keywordtype">int</span>     <a class="code" href="class_masque.html#ac8d468389d7f8b4cdd58156aa61b4b41">hauteur</a>; 
<a name="l00221"></a><a class="code" href="class_masque.html#a84fe499ff9bf24b07ef0564b9229aa63">00221</a>         <span class="keywordtype">int</span> <a class="code" href="class_masque.html#a84fe499ff9bf24b07ef0564b9229aa63">taillePinceau</a>; 
<a name="l00222"></a><a class="code" href="class_masque.html#a07be237e2146fba6a7ed72622a507e22">00222</a>         GLubyte* <a class="code" href="class_masque.html#a07be237e2146fba6a7ed72622a507e22">data</a>; 
<a name="l00223"></a><a class="code" href="class_masque.html#a955a2d28de8b4eb1710184312e2d0d88">00223</a>         GLubyte* <a class="code" href="class_masque.html#a955a2d28de8b4eb1710184312e2d0d88">dataTmp</a>;
<a name="l00225"></a>00225 };
<a name="l00226"></a>00226 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Généré le Mon May 3 11:24:39 2010 pour Inpainting par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
